//
//  HMDiscoverSearchView.swift
//  swift-新浪微博0
//
//  Created by 赵玉忠 on 16/8/29.
//  Copyright © 2016年 itcast. All rights reserved.
//

import UIKit

@IBDesignable class HMDiscoverSearchView: UIButton {
  class  func searchView() -> HMDiscoverSearchView {
        let view = Bundle.main.loadNibNamed("HMDiscoverSearchView", owner: nil, options: nil)!.last! as!HMDiscoverSearchView
        return view
    }

    override func awakeFromNib() {
        self.imageEdgeInsets = UIEdgeInsetsMake(0, 10, 0, 0)
        self.titleEdgeInsets = UIEdgeInsetsMake(0, 20, 0, 0)
    }

}







